Platform Explorer / Nuxeo Platform 2021.26

Contribution org.nuxeo.ecm.core.automation.features.operations--chains

This contribution is part of XML component org.nuxeo.ecm.core.automation.features.operations inside nuxeo-automation-features-2021.26.5.jar /OSGI-INF/operations-contrib.xml

Extension Point

Extension point chains of component OperationServiceComponent.

Registration Order

0
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <chain id="VersionAndAttachFile">
          <operation id="Context.PushBlobList">
          </operation>
          <operation id="Repository.GetDocument">
            <param name="value" type="string">expr:Context.get("currentDocument")</param>
          </operation>
          <operation id="Document.CheckIn">
            <param name="version" type="string">minor</param>
            <param name="comment" type="string">Automatic checkin before file update</param>
          </operation>
          <operation id="Context.SetInputAsVar">
            <param name="name" type="string">newDocument</param>
          </operation>
          <operation id="Context.SetVar">
            <param name="name" type="string">currentDocument</param>
            <param name="value" type="string">expr:Context.get("newDocument").id</param>
          </operation>
          <operation id="Context.PopBlobList">
          </operation>
          <operation id="BlobHolder.AttachOnCurrentDocument">
            <param name="useMainBlob" type="boolean">true</param>
          </operation>
        </chain>
  • <chain id="AttachFiles">
          <operation id="BlobHolder.AttachOnCurrentDocument">
            <param name="useMainBlob" type="boolean">false</param>
          </operation>
        </chain>
  • <chain id="VersionAndAttachFiles">
          <operation id="Context.PushBlobList">
          </operation>
          <operation id="Repository.GetDocument">
            <param name="value" type="string">expr:Context.get("currentDocument")</param>
          </operation>
          <operation id="Document.CheckIn">
            <param name="version" type="string">minor</param>
            <param name="comment" type="string">Automatic checkin before files update</param>
          </operation>
          <operation id="Context.SetInputAsVar">
            <param name="name" type="string">newDocument</param>
          </operation>
          <operation id="Context.SetVar">
            <param name="name" type="string">currentDocument</param>
            <param name="value" type="string">expr:Context.get("newDocument").id</param>
          </operation>
          <operation id="Context.PopBlobList">
          </operation>
          <operation id="BlobHolder.AttachOnCurrentDocument">
            <param name="useMainBlob" type="boolean">false</param>
          </operation>
        </chain>
  • <chain id="FileManager.ImportWithMetaData">
          <operation id="FileManager.ImportWithProperties">
            <param name="overwrite" type="boolean">true</param>
            <param name="properties" type="properties">expr:Context.get("docMetaData")</param>
          </operation>
        </chain>

XML Source

<extension point="chains" target="org.nuxeo.ecm.core.operation.OperationServiceComponent">
    <chain id="VersionAndAttachFile">
      <operation id="Context.PushBlobList">
      </operation>
      <operation id="Repository.GetDocument">
        <param name="value" type="string">expr:Context.get("currentDocument")</param>
      </operation>
      <operation id="Document.CheckIn">
        <param name="version" type="string">minor</param>
        <param name="comment" type="string">Automatic checkin before file update</param>
      </operation>
      <operation id="Context.SetInputAsVar">
        <param name="name" type="string">newDocument</param>
      </operation>
      <operation id="Context.SetVar">
        <param name="name" type="string">currentDocument</param>
        <param name="value" type="string">expr:Context.get("newDocument").id</param>
      </operation>
      <operation id="Context.PopBlobList">
      </operation>
      <operation id="BlobHolder.AttachOnCurrentDocument">
        <param name="useMainBlob" type="boolean">true</param>
      </operation>
    </chain>
    <chain id="AttachFiles">
      <operation id="BlobHolder.AttachOnCurrentDocument">
        <param name="useMainBlob" type="boolean">false</param>
      </operation>
    </chain>
    <chain id="VersionAndAttachFiles">
      <operation id="Context.PushBlobList">
      </operation>
      <operation id="Repository.GetDocument">
        <param name="value" type="string">expr:Context.get("currentDocument")</param>
      </operation>
      <operation id="Document.CheckIn">
        <param name="version" type="string">minor</param>
        <param name="comment" type="string">Automatic checkin before files update</param>
      </operation>
      <operation id="Context.SetInputAsVar">
        <param name="name" type="string">newDocument</param>
      </operation>
      <operation id="Context.SetVar">
        <param name="name" type="string">currentDocument</param>
        <param name="value" type="string">expr:Context.get("newDocument").id</param>
      </operation>
      <operation id="Context.PopBlobList">
      </operation>
      <operation id="BlobHolder.AttachOnCurrentDocument">
        <param name="useMainBlob" type="boolean">false</param>
      </operation>
    </chain>
    <chain id="FileManager.ImportWithMetaData">
      <operation id="FileManager.ImportWithProperties">
        <param name="overwrite" type="boolean">true</param>
        <param name="properties" type="properties">expr:Context.get("docMetaData")</param>
      </operation>
    </chain>
  </extension>